//
//  SliderToolbar.h
//  播放器模拟(列表)
//
//  Created by lanou3g on 15/11/2.
//  Copyright © 2015年 songhaowen. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "Slider.h"
@class SliderToolbar;
@protocol  SliderToolbarDelegate <NSObject>

@optional
- (void)sliderToolbar:(SliderToolbar *)sliderToolbar playButtonDidClick:(UIButton *)button;
@end

@interface SliderToolbar : UIView

@property (nonatomic, assign) CGFloat totalTime;
@property (nonatomic, assign) CGFloat currentTime;

/** 进度条 */
@property (nonatomic, strong) Slider *slider;
/** 视频总时长 */
@property (nonatomic, strong) UILabel *totalTimeLabel;
/** 视频现在播放的时间 */
@property (nonatomic, strong) UILabel *currentTimeLabel;
/** 暂停|播放按钮 */
@property (nonatomic, strong) UIButton *playButton;

@property (nonatomic, assign) id<SliderToolbarDelegate> delegate;

- (NSString *)convertSecondToMinute:(CGFloat)seconds;

@end
